#include "ZContainer.h"
#pragma once
namespace Zdib
{
	class CBox:public CContainer
	{
	public:
		CBox(CContainer *root,CContainer *parent,int w,int h,TColor color,BYTE alpha);
		virtual ~CBox();
		
		void SetSize(int w,int h);
		virtual void Draw();
		virtual CBitBmp *GetMyImg(){return m_Img;};
		virtual bool OnEvent(const TEvent& ev);
	private:
		CImgFile *m_Img;
		TColor m_Color;
		BYTE m_Alpha;
	};
}